module.exports = {
    entry: 'src/index.js',
    publicPath: '/cmdb-res/',
    disableRuntime: true,
    ignoreHtmlTemplate: true,
    alias: {
        '@': './src/',
    },
    define: {
        API_SERVER: '',
        IAM_SERVER: '/IAM-ADMIN',
        THEME_NAME: '',
    },
    devServer: {
        historyApiFallback: true,
    },
    plugins: [
        [
            'build-plugin-antd',
            {
                themeConfig: {
                    'primary-color': '#4E84E9',
                    'ant-prefix': 'hcp',
                    'font-size-base': '12px',
                    'text-color': '#323C5A',
                    'label-color': '#323C5A',
                    'table-header-bg': '#F3F4F7',
                    'table-header-color': '#323C5A',
                    'tooltip-bg': '#fff',
                    'tooltip-color': '#666666',
                    'tooltip-arrow-width': '8px',
                    'slider-track-background-color': '#4E84E9',
                    'slider-track-background-color-hover': '#4E84E9',
                    'slider-handle-color': '#4E84E9',
                    'radio-disabled-button-checked-color': '#a9a6a6',
                },
            },
        ],
        [
            'build-plugin-moment-locales',
            {
                locales: ['zh-cn'],
            },
        ],
    ],
};
